<h1>IT Department Primer</h1>
<br>
<br><a href="index.html">Back to Home</a>
<br>
<br><b>Using FastDomain to host websites and symfony programs online</b>
<br>
<br>The web hosting service I am currently using is fastdomain.com
<br>
<br>I have a username and password (but I'm not sharing that here).
<br>
<br>Fastserver.com has a great set of tools available in their control panel, for managing your files, domains and databases, promoting your content, etc.
<br>
<br>I did find their online tools do not work in my desktop (Fedora Linux), so I use Filezilla as my FTP tool. 
<br>
<br>I was able to upload the symfony programs into the online webserver this way:
<br>
<br>

<nl>
  <li>Create a database (their database names and database user names have a prefix which is your account name: ex. planetco_acct)</li>
  <li>Create the database tables using sql statements (obtained from an export from your local PHPmyadmin)</li>
  <li>Create a database user (if none exist)</li>
  <li>Assign the user to the database</li>
  <li>Edit frontend_dev.php and remove/comment out the lines of code that prevent it from running in a prod setting</li>
  <li>Clear-cache the local symfony program</li>
  <li>Zip the local symfony program</li>
  <li>Upload the zip file</li>
  <li>Use the online tools to unzip the symfony file in a desired folder, preferably as a child of www (ex. www/acct)</li>
  <li>Open the program online to frontend_dev, and make any necessary adjustments to database</li>
  <li>If the program gives an error</li>
  <ul>
    <li>Refresh / reload the website several times (especially if it says something like "_______ folder is dangerously rewritable"). If you're using Internet Explorer, clear IE's stored webpages cache. (*demo pls)</li>
    <li>You can clear-cache online Symfony program by deleting the contents of the cache/frontend/prod/config folder (or cache/frontend/dev/config if you're trying to run frontend_dev.php)</li>
    <li>Edit frontend_dev.php and remove/comment out the following lines of code:</li>

<br>if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
<br>{
<br>&nbsp;&nbsp;die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
<br>}
<br>
<br>
They prevent it from running in a dev setting. Then run the program in dev mode (www.quirinopgo.com/acct/web/frontend_dev.php instead of www.quirinopgo.com/acct/web/index.php). You'll get more info on what's wrong with the program this way. Debug accordingly. Do uncomment the above lines when you're done. They protect the system from hackers.

  </ul>
</nl>

<br>
<br>
<br><b>Using FileZilla to upload files to the webserver</b>
<br>
<br>Install FileZilla if you haven't (see tutorial on "Installing Programs required for a Dev Computer Linux")
<br>
<br>In the Host input box type / paste 74.220.199.27
<br>In the Username box type planetco
<br>Type the password in the password box and press Enter.
<br>
<br>You can now upload and download files from the webserver.
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

